﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace exerciseThree
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("计算结果为： ");
            double add=1;
            for (int i = 1; i < 100; i++)
            {
                add +=i /(float) (i+1);
            }
            Console.WriteLine(add);
            Console.ReadKey();
        }
    }
}
